//
//  GQHOrderView.h
//  Xanthium
//
//  Created by GuanQinghao on 10/03/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GQHOrderModel.h"


@protocol GQHOrderViewDelegate <NSObject>

@required
/// 默认必须实现

@optional
/// 可选实现
/// 点击列表项
- (void)qh_selectedRowWithTableView:(UITableView *)tableView atIndexPath:(NSIndexPath *)indexPath;

/// 确认装车或确认送达或评价
- (void)qh_loadedOrUnloadedOrComment:(UIButton *)sender;

/// 取消订单或在途追踪
- (void)qh_cancelOrMap:(UIButton *)sender;

/// 查看协议内容
- (void)qh_checkContract:(UIButton *)sender;

/// 拨打电话
- (void)qh_dialMobile:(UIButton *)sender;

@end


@interface GQHOrderView : UIView

/// 代理
@property (nonatomic, weak) id<GQHOrderViewDelegate> qh_delegate;

/// 我的订单列表
@property (nonatomic, strong) UITableView *qh_tableView;

/// 我的订单模型数组
@property (nonatomic, strong) NSMutableArray<GQHOrderModel *> *qh_orderModelArray;

/// 选中的标签页
@property (nonatomic, assign) NSInteger qh_selectedTag;

@end
